package com.luoxin.servicemap.controller;

import com.luoxin.internalcommon.dto.ResponseResult;
import com.luoxin.internalcommon.response.TrackResponse;
import com.luoxin.servicemap.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/track")
public class TrackController {
    @Autowired
    private TrackService trackService;

    @PostMapping("/addTrack")
    public ResponseResult<TrackResponse> addTrack(String tid){
        return trackService.addTrack(tid);
    }


    @GetMapping("/deleteTrack")
    public ResponseResult delete(String tid,String trid){
        return trackService.deleteTrack(tid,trid);
    }
}
